package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 断路器设备列表
 *
 * @author mr.zhou
 * @email zhouweiNice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("fsr_device")
public class FsrDevice implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;
	private String assetId;
	private	Integer deviceId;
	private String name;
	private	String category;
	private String productId;
	private	String productName;
	private String uuid;
	private	Integer powerCodeState;
	private Integer onlineState;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private	Date activeTime;
	private String icon;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	private String status;


	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastOnlineTime;


	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastWarnTime;

	/**
	 * 是否是本平台使用  0 - 非本平台使用 1 - 本平台使用
	 */
	private Integer isSelf;

	/**
	 *  是否在工作  0 - 未在工作  1 - 在工作
	 */
	private Integer isWorking;


	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastUpdateTime;



	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastOnlineCheckTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastOfflineTime;

}
